import requests
url = 'https://www.baidu.com/'
response = requests.get(url)
# print(response.text)
print(response.url)
print(response.status_code)
print(response.encoding)
print(response.request.headers)
print(response.headers)
print(response.cookies)